package com.hkts.beltweigher.websocket;

import lombok.extern.slf4j.Slf4j;

/**
 * @ClassNameExceptionPrintUtils
 * @Description
 * @Author yck
 * @Date14/7/2022 下午3:39
 * @Version V1.0
 **/
@Slf4j
public class ExceptionPrintUtils {
    public static void exceptionPrintUtils(Throwable cause){
        log.error(cause.toString());
        StackTraceElement[] stackTrace = cause.getStackTrace();
        for(int i=0;i<stackTrace.length;i++){
            log.error(stackTrace[i].toString());
        }
    }
}
